# 导入http请求库
import requests
import os
# 声明参数
# data = {'email':'12585888998@qq.com','password':'p123456'}
# data = {'upload':'1','token':'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MTE5LCJlbWFpbCI6Ilx1NzUyOFx1NjIzNzYwMzA4Nzk0MjdAcXEuY29tIn0.NRQ3Awgie3UyiX2IAoEnMrePmSOOHK-xOyUxejj7KYU'}
# files = {'file':('壁纸8.png',open('C:/Users/asus/Pictures/Saved Pictures/壁纸8.png','rb'))}

# if __name__ == '__main__':
#     # res = requests.post('http://localhost:8000/user/',data=data)
#     # res = requests.post('http://localhost:8000/file/', data=data)
#     res = requests.post('http://localhost:8000/file/',data=data, files=files)
#     print(res.text)


# set = {'1','2','1','3'}
# print(set)

# list1 = ['a','b','c']
# # tuple = ('a','b','c','d')
# # str = 'abcdefg'
# # for i,j in enumerate(str):
# #     print(i,j)
# # print(''.join(list1))
# import datetime
# print(type(datetime.datetime.now() + datetime.timedelta(seconds=1800)))
# print(type((datetime.datetime.now() + datetime.timedelta(seconds=30)).timestamp()))

# def uniqList03(data=None):
#     data = sorted(data) # [11135668]
#     newdata = []
#     stop = len(data) - 1   #  6
#     i = 0
#     while i <= stop:
#         j = i + 1
#         if i == stop:       # 如果i是最后一个元素的下标
#             newdata.append(data[i]) # 直接添加
#             i += 1
#         else:
#             if data[i] == data[j]:
#                 while j <= stop and data[i] == data[j]:
#                     j += 1
#             newdata.append(data[i])
#             i = j
#     return newdata
#
# print(uniqList03([1,6,8,5,3,6,8,1,1]))


# list1 = []
# for i in range(10000):
#     list1.append(i)
# list2 = list1[::-1]
# for i in list2[:10]:
#     print(i)

# s='Lady and the Gentle'
# c = s.lower()
# list1 = c.split()
# print(list1)
# list2 = []
# for i in list1:
#     a = i[0] + i[1].upper() + i[2:]
#     list2.append(a)
# print(list2)

s='Lady and the Gentle'
c = s.lower()
list1 = c.split()

list2 = []
for i in list1:
    list3 = []
    for j in i:
        list3.append(j)
    list3[1]=list3[1].upper()
    d = ''.join(list3)
    list2.append(d)
print(list2)







# list1 = [1,6,8,5,3,6,8,1,1]
# list1 = sorted(list1)
# num = len(list1)-1
# temp = []
# i = 0
# while i<=num:
#     j = i+1
#     if i == num:
#         temp.append(list1[i])
#         i+=1
#     else:
#         if list1[i] == list1[j]:
#             while j<=num and list1[i]==list1[j]:
#                 j+=1
#         temp.append(list1[i])
#         i = j
# print(temp)
# print(newlist)
# list1 = [2, 1, 3, 4, 1]
# temp = []

# for i in list1:
#     if i not in temp:
#         temp.append(i)

# [temp.append(i) for i in list1 if i not in temp]
#
# print(temp)










